home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wtek0693.zip / OOPALLEY.ZIP / QUEUE.V < prev    next >
Text File  |  1990-04-30  |  3KB  |  191 lines

  1. hello, world
  2. q created
  3. q capacity: 10
  4. q size: 0
  5. sizeof(q):8
  6. sizeof(Object):2
  7. sizeof(Point):6
  8. sizeof(Queue):8
  9. sizeof(ArrayOb):6
  10. ========================================
  11. Queue capacity: 10
  12. Queue size: 3
  13. Queue *pContents: ArrayOb[
  14. (0 @ 1)
  15. (0 @ 2)
  16. (0 @ 3)
  17. NIL
  18. NIL
  19. NIL
  20. NIL
  21. NIL
  22. NIL
  23. NIL]
  24.  
  25. readPosition: 0
  26. writePosition: 3
  27. Remove and print each object in Queue:
  28. (0 @ 1) | (0 @ 2) | (0 @ 3) | =======
  29. ========================================
  30. q should be filled:
  31. Queue capacity: 10
  32. Queue size: 7
  33. Queue *pContents: ArrayOb[
  34. NIL
  35. NIL
  36. NIL
  37. (0 @ 4)
  38. (0 @ 5)
  39. (0 @ 6)
  40. (0 @ 7)
  41. (0 @ 8)
  42. (0 @ 9)
  43. (0 @ 10)]
  44.  
  45. readPosition: 3
  46. writePosition: 10
  47. Remove and print each object in Queue:
  48. (0 @ 4) | (0 @ 5) | (0 @ 6) | (0 @ 7) | (0 @ 8) | (0 @ 9) | (0 @ 10) | =======
  49. ========================================
  50. Queue capacity: 10
  51. Queue size: 3
  52. Queue *pContents: ArrayOb[
  53. (1 @ 1)
  54. (1 @ 2)
  55. (1 @ 3)
  56. NIL
  57. NIL
  58. NIL
  59. NIL
  60. NIL
  61. NIL
  62. NIL]
  63.  
  64. readPosition: 0
  65. writePosition: 3
  66. Remove and print each object in Queue:
  67. (1 @ 1) | (1 @ 2) | (1 @ 3) | =======
  68. ========================================
  69. q should be filled:
  70. Queue capacity: 10
  71. Queue size: 7
  72. Queue *pContents: ArrayOb[
  73. NIL
  74. NIL
  75. NIL
  76. (1 @ 4)
  77. (1 @ 5)
  78. (1 @ 6)
  79. (1 @ 7)
  80. (1 @ 8)
  81. (1 @ 9)
  82. (1 @ 10)]
  83.  
  84. readPosition: 3
  85. writePosition: 10
  86. Remove and print each object in Queue:
  87. (1 @ 4) | (1 @ 5) | (1 @ 6) | (1 @ 7) | (1 @ 8) | (1 @ 9) | (1 @ 10) | =======
  88. ========================================
  89. Queue capacity: 10
  90. Queue size: 3
  91. Queue *pContents: ArrayOb[
  92. (3 @ 1)
  93. (3 @ 2)
  94. (3 @ 3)
  95. NIL
  96. NIL
  97. NIL
  98. NIL
  99. NIL
  100. NIL
  101. NIL]
  102.  
  103. readPosition: 0
  104. writePosition: 3
  105. Queue[
  106. (3 @ 1)
  107. (3 @ 2)
  108. (3 @ 3)]
  109. ========================================
  110. Queue capacity: 10
  111. Queue size: 10
  112. Queue *pContents: ArrayOb[
  113. (3 @ 1)
  114. (3 @ 2)
  115. (3 @ 3)
  116. (3 @ 4)
  117. (3 @ 5)
  118. (3 @ 6)
  119. (3 @ 7)
  120. (3 @ 8)
  121. (3 @ 9)
  122. (3 @ 10)]
  123.  
  124. readPosition: 0
  125. writePosition: 10
  126. Queue[
  127. (3 @ 1)
  128. (3 @ 2)
  129. (3 @ 3)
  130. (3 @ 4)
  131. (3 @ 5)
  132. (3 @ 6)
  133. (3 @ 7)
  134. (3 @ 8)
  135. (3 @ 9)
  136. (3 @ 10)]
  137. Next statement should resize q
  138. ========================================
  139. Queue capacity: 42
  140. Queue size: 11
  141. Queue *pContents: ArrayOb[
  142. (3 @ 1)
  143. (3 @ 2)
  144. (3 @ 3)
  145. (3 @ 4)
  146. (3 @ 5)
  147. (3 @ 6)
  148. (3 @ 7)
  149. (3 @ 8)
  150. (3 @ 9)
  151. (3 @ 10)
  152. (3 @ 11)
  153. NIL
  154. NIL
  155. NIL
  156. NIL
  157. NIL
  158. NIL
  159. NIL
  160. NIL
  161. NIL
  162. NIL
  163. NIL
  164. NIL
  165. NIL
  166. NIL
  167. NIL
  168. NIL
  169. NIL
  170. NIL
  171. NIL
  172. NIL
  173. NIL
  174. NIL
  175. NIL
  176. NIL
  177. NIL
  178. NIL
  179. NIL
  180. NIL
  181. NIL
  182. NIL
  183. NIL]
  184.  
  185. readPosition: 0
  186. writePosition: 11
  187. ========================================
  188. Remove and print each object in Queue:
  189. (3 @ 1) | (3 @ 2) | (3 @ 3) | (3 @ 4) | (3 @ 5) | (3 @ 6) | (3 @ 7) | (3 @ 8) | (3 @ 9) | (3 @ 10) | (3 @ 11) | =======
  190. ========================================
  191.